Component({
    properties: {
        expressNo:String,   // 快递单号
        expressCode:String, // 物流公司编码
        phone:{type:String,value:''},  // 收货人手机号
    },
    data: {},
    methods: {
        toDelivery(){
            const {expressNo, expressCode, phone} = this.data
            const res = wx.getSystemInfoSync()
            let  url = `plugin://kdPlugin/index?num=${expressNo}&com=${expressCode}&appName=团长小店助手`
            if (phone){
                url += `&phone=${phone}`
            }
            wx.navigateTo({
                url: url,
            })
        }
    }
});
